<template>
  <div class="school-card border border-success rounded">
    <div v-show="type" class="school-card-header border border-warning">{{type}}</div>
    <div class="school-card-image">
      <el-avatar :size="size" :src="imagesrc"></el-avatar>
    </div>
    <div class="school-card-name" v-text="name"></div>
  </div>
</template>

<script>
export default {
  props: ["type", "imagesrc", "name"],
  data() {
    return {
      size: 100
    };
  }
};
</script>

<style lang="scss" scoped>
@import "@/scss/settings.scss";
@import "@/scss/base.scss";
.school-card {
  height: 240px;
  width: 160px;
  background-color: $htecolor2;
  position: relative;
  overflow: hidden;

  .school-card-header {
    padding-top: 20px;
    width: 100px;
    height: 55px;
    transform: rotate(45deg);
    text-align: center;
    background-color: #ffffff;
    font-size: 24px;
    position: absolute;
    right: -35px;
    top: -12px;
  }
  .school-card-image {
    height: 100px;
    width: 100px;
    margin: 45px auto 25px auto;
  }
  .school-card-name {
    text-align: center;
    font-size: 24px;
    height: 36px;
    color: #ffffff;
  }
}
</style>